<!-- 
/*
 * @Copyright (c) 2018 缪聪(mcg-helper@qq.com)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");  
 * you may not use this file except in compliance with the License.  
 * You may obtain a copy of the License at  
 *     
 *     http://www.apache.org/licenses/LICENSE-2.0  
 *     
 * Unless required by applicable law or agreed to in writing, software  
 * distributed under the License is distributed on an "AS IS" BASIS,  
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
 * See the License for the specific language governing permissions and  
 * limitations under the License.
 */
 -->
 
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width">
		<link rel="shortcut icon" type="image/png" href="../../img/favicon.png">
        <title>微克机器人</title>
        
	    <link rel="stylesheet" href="<%=basePath %>/library/js/jquery-wdir/css/folder.css?_v=${version}" />
	</head>
	
	<body>
	
		<div class="navigation-bar">
			<button id="fs_home" type="button" class="btn btn-default glyphicon glyphicon-home" title="根目录"></button>
			<button id="fs_upload_btn" type="button" class="btn btn-default glyphicon glyphicon-open-file" title="上传文件"></button>
			<button id="fs_backward" type="button" class="btn btn-default glyphicon glyphicon-circle-arrow-left" title="向前"></button>
			<button id="fs_forward" type="button" class="btn btn-default glyphicon glyphicon-circle-arrow-right" title="向后"></button>
			<button id="fs_refresh" type="button" class="btn btn-default glyphicon glyphicon-refresh" title="刷新"></button>
			<button id="fs_gotopre" type="button" class="btn btn-default glyphicon glyphicon-circle-arrow-up" title="返回上层目录"></button>
			
			<div class="folder-navigation" id="folder-navigation"></div>
			<input type="text" class="navigation" id="navigation" style="display: none;">
		</div>
		<div class="alldom" id="all_folder">
			<ul id="divall"></ul>
		</div>
		<div class="info-bar" id="info-bar"></div>
		<div style="clear: both;"></div>
		
		<!-- 在空白部分右键的菜单 -->
		<div class="contextMenu" id="myMenu1">
			<ul>
				<li id="newfolder">新文件夹</li>
				<li id="flush">刷新</li>
				<!-- <li id="paste">粘贴</li> 
				<li id="sort">排序</li>
				-->
				<li id="upload">上传文件</li>
			</ul>
		</div>
		<!-- 在文件夹上右键菜单 -->
		<div class="contextMenu" id="myMenu2">
			<ul>
				<li id="open">打开</li>
				<!-- <li id="copy">复制</li>
				<li id="cut">剪切</li>
				<li id="paste">黏贴</li> -->
				<li id="rename">重命名</li>
				<li id="delete">删除</li>
				<li id="download">打包下载</li>
			</ul>
		</div>
		<!-- 在文件上面右键菜单 -->
		<div class="contextMenu" id="myMenu3">
			<ul>
				<li id="download">下载</li>
				<!-- <li id="copy">复制</li>
				<li id="cut">剪切</li> -->
				<li id="rename">重命名</li>
				<li id="delete">删除</li>
			</ul>
		</div>
			
	  <!-- 	</div> -->
	</body>
</html>


<script type="text/javascript">
var fsBaseMap = new Map();
fsBaseMap.put("fsRootPath", "${fsPath}");
fsBaseMap.put("fsCurPath", "${fsPath}");

</script>
<script src="<%=basePath %>/library/js/jquery-wdir/js/jquery.contextmenu.r2.js?_v=${version}"></script>
<script src="<%=basePath %>/library/js/jquery-wdir/js/dblist.js?_v=${version}"></script>
<script src="<%=basePath %>/library/js/jquery-wdir/js/folder.js?_v=${version}"></script>